﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D79 RID: 3449
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PunkLordBattleReplay : IMessage<PunkLordBattleReplay>, IMessage, IEquatable<PunkLordBattleReplay>, IDeepCloneable<PunkLordBattleReplay>, IBufferMessage
	{
		// Token: 0x17002BC3 RID: 11203
		// (get) Token: 0x06009AC5 RID: 39621 RVA: 0x0019D935 File Offset: 0x0019BB35
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PunkLordBattleReplay> Parser
		{
			get
			{
				return PunkLordBattleReplay._parser;
			}
		}

		// Token: 0x17002BC4 RID: 11204
		// (get) Token: 0x06009AC6 RID: 39622 RVA: 0x0019D93C File Offset: 0x0019BB3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PunkLordBattleReplayReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002BC5 RID: 11205
		// (get) Token: 0x06009AC7 RID: 39623 RVA: 0x0019D94E File Offset: 0x0019BB4E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PunkLordBattleReplay.Descriptor;
			}
		}

		// Token: 0x06009AC8 RID: 39624 RVA: 0x0019D955 File Offset: 0x0019BB55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordBattleReplay()
		{
		}

		// Token: 0x06009AC9 RID: 39625 RVA: 0x0019D968 File Offset: 0x0019BB68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordBattleReplay(PunkLordBattleReplay other) : this()
		{
			this.battleReplayKey_ = other.battleReplayKey_;
			this.replayInfo_ = ((other.replayInfo_ != null) ? other.replayInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009ACA RID: 39626 RVA: 0x0019D9B4 File Offset: 0x0019BBB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordBattleReplay Clone()
		{
			return new PunkLordBattleReplay(this);
		}

		// Token: 0x17002BC6 RID: 11206
		// (get) Token: 0x06009ACB RID: 39627 RVA: 0x0019D9BC File Offset: 0x0019BBBC
		// (set) Token: 0x06009ACC RID: 39628 RVA: 0x0019D9C4 File Offset: 0x0019BBC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string BattleReplayKey
		{
			get
			{
				return this.battleReplayKey_;
			}
			set
			{
				this.battleReplayKey_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17002BC7 RID: 11207
		// (get) Token: 0x06009ACD RID: 39629 RVA: 0x0019D9D7 File Offset: 0x0019BBD7
		// (set) Token: 0x06009ACE RID: 39630 RVA: 0x0019D9DF File Offset: 0x0019BBDF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ReplayInfo ReplayInfo
		{
			get
			{
				return this.replayInfo_;
			}
			set
			{
				this.replayInfo_ = value;
			}
		}

		// Token: 0x06009ACF RID: 39631 RVA: 0x0019D9E8 File Offset: 0x0019BBE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PunkLordBattleReplay);
		}

		// Token: 0x06009AD0 RID: 39632 RVA: 0x0019D9F8 File Offset: 0x0019BBF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PunkLordBattleReplay other)
		{
			return other != null && (other == this || (!(this.BattleReplayKey != other.BattleReplayKey) && object.Equals(this.ReplayInfo, other.ReplayInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009AD1 RID: 39633 RVA: 0x0019DA4C File Offset: 0x0019BC4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BattleReplayKey.Length != 0)
			{
				num ^= this.BattleReplayKey.GetHashCode();
			}
			if (this.replayInfo_ != null)
			{
				num ^= this.ReplayInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009AD2 RID: 39634 RVA: 0x0019DAA3 File Offset: 0x0019BCA3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009AD3 RID: 39635 RVA: 0x0019DAAB File Offset: 0x0019BCAB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009AD4 RID: 39636 RVA: 0x0019DAB4 File Offset: 0x0019BCB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BattleReplayKey.Length != 0)
			{
				output.WriteRawTag(10);
				output.WriteString(this.BattleReplayKey);
			}
			if (this.replayInfo_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.ReplayInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009AD5 RID: 39637 RVA: 0x0019DB14 File Offset: 0x0019BD14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BattleReplayKey.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.BattleReplayKey);
			}
			if (this.replayInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ReplayInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009AD6 RID: 39638 RVA: 0x0019DB70 File Offset: 0x0019BD70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PunkLordBattleReplay other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BattleReplayKey.Length != 0)
			{
				this.BattleReplayKey = other.BattleReplayKey;
			}
			if (other.replayInfo_ != null)
			{
				if (this.replayInfo_ == null)
				{
					this.ReplayInfo = new ReplayInfo();
				}
				this.ReplayInfo.MergeFrom(other.ReplayInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009AD7 RID: 39639 RVA: 0x0019DBDD File Offset: 0x0019BDDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009AD8 RID: 39640 RVA: 0x0019DBE8 File Offset: 0x0019BDE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 18U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.replayInfo_ == null)
						{
							this.ReplayInfo = new ReplayInfo();
						}
						input.ReadMessage(this.ReplayInfo);
					}
				}
				else
				{
					this.BattleReplayKey = input.ReadString();
				}
			}
		}

		// Token: 0x04003BA0 RID: 15264
		private static readonly MessageParser<PunkLordBattleReplay> _parser = new MessageParser<PunkLordBattleReplay>(() => new PunkLordBattleReplay());

		// Token: 0x04003BA1 RID: 15265
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003BA2 RID: 15266
		public const int BattleReplayKeyFieldNumber = 1;

		// Token: 0x04003BA3 RID: 15267
		private string battleReplayKey_ = "";

		// Token: 0x04003BA4 RID: 15268
		public const int ReplayInfoFieldNumber = 2;

		// Token: 0x04003BA5 RID: 15269
		private ReplayInfo replayInfo_;
	}
}
